﻿

//准备废弃 sjn
//var DefaultForm = "aspnetForm";  //默认表单
//var pclass = "page___"           //标记控件为分页列表的筛选项
//var IsCut = true;                //key 是否缩减。默认为是  缩减词放到是控件的名称后面用_隔开，如 DropDownList_dis   dis 就是对这个控件的缩减标示，使用时注意不要有重复



////函数索引
////UpdateParam           当前的url单项参数操作，（添加、删除、修改）
////                        参数：
////                            key        参数键盘
////                            value      键值
////                            urlParams  url中的参数数组
////                        返回值：
////                            新URL参数数组  格式 ： { "key": ck, "val": cval }
////UpdateParams          对当前的url多项参数操作，（添加、删除、修改）  
////                        参数：
////                            Ctrls : 控件数组
////                            urlParams ： url参数数组
////                        返回值：
////                            key/val的数组  { "key": "" , "val" : "" }
////GetUrlParams          获取当前url ？后面的所有参数 
////                        参数：
////                            无
////                        返回值：
////                            key/val的数组  { "key": "" , "val" : "" };                                                 
////request               获取当前url中单项参数的值             （返回值 : 返回该键的值 ）
////                        参数：
////                            参数键  key 
////                        返回值：
////                            该键的值
////ParamsSetForm           把当前URL中的参数回填到表单中  
////                        （2011.12.10 --- 目前此方法只是针对分页开发，只把url中key为控件name进行数据回填写）
////                        注 ：只给控件class为 pagedata 控件赋值
////                        参数：
////                            表单名称
////                        返回值：
////                            无
////GetFormCtrl           获取某表单所有Class为分页标示控件信息
////                      注：控件必须添加Class = 分页标示类 顶部
////                        参数：
////                            表单名称
////                        返回值：
////                            控件数组
////GetAttr               通过控件对象获取他的属性
////                      注：控件必须添加Class = 分页标示类 顶部
////                        参数：
////                            控件对象
////                        返回值：
////                            属性数组
////UrlParToUrl           把url参数数组转为URL
////                        参数
////                            url参数数组
////                        返回值
////                            完整的url





////当前的url单项参数操作，（添加、删除、修改）
////参数：key        参数键盘
////      value      键值
////      urlParams  url中的参数数组
////返回值：
////      新URL参数数组  格式 ： { "key": ck, "val": cval }
////var UpdateParam = function (key, value, urlParams) {
////    var Temp = [];
////    Temp[Temp.length] = {};
////    Temp[Temp.length - 1] = { netname: key, name: key, key: key, val: value };
////    return UpdateParams(Temp, urlParams);
////}


////UpdateParams          对当前的url多项参数操作，（添加、删除、修改）  
////                        参数：
////                            Ctrls : 控件数组
////                            urlParams ： url参数数组
////                        返回值：
////                            新URL参数数组  格式 ： { "key": ck, "val": cval }
////var UpdateParams = function (Ctrls, urlParams) {
////    var _Ctrls = Ctrls;            //所有控件的属性集合
////    var _urlp = urlParams;         //所有url中？后的参数集合

////    for (var i = 0; i < _Ctrls.length; i++) {   //循环所有控件单个去跟url参数去比对
////        var bool = false;
////        var ck = _Ctrls[i].key;
////        var cval = $.trim(_Ctrls[i].val);
////        var uindex = 0;
////        for (var j = 0; j < _urlp.length; j++) {
////            var uk = _urlp[j].key;
////            if (ck == uk) {
////                bool = true;
////                uindex = j;
////                break;
////            }
////        }

////        if (bool) {
////            if (cval == "" || cval == null || cval == undefined) {
////                _urlp.splice(uindex, 1);   //删除url参数
////            }
////            else {
////                _urlp[uindex] = { "key": ck, "val": cval };   //更新url参数
////            }
////        } else {
////            if (cval != "" && cval != null && cval != undefined) {
////                _urlp.push({ "key": ck, "val": cval });         //添加url参数
////            }
////        }
////    } //end for

////    return _urlp;  //返回处理好的新URL参数
////}


////把URL中的参数回填到表单中   （
////2011.12.10 --- 目前此方法只是针对分页开发，只把url中key为控件name进行数据回填写）
////
//// 注 ：只给控件class为 pagedata 控件赋值
//var ParamsSetForm = function (FormName) {
//    //设置默认表单
//    if (FormName == "" || FormName == null | FormName == undefined) {
//        FormName = DefaultForm;
//    }

//    var Params = GetUrlParams();           //获取URL中所有key和val
//    for (var i = 0; i < Params.length; i++) {
//        var _key = Params[i].key;    //获取key   小写或者简写的，要换成完整的，通过下面循环完成
//        var _val = Params[i].val;

//        var _Ctrls = GetFormCtrl(FormName); //所有控件的属性集合
//        for (var j = 0; j < _Ctrls.length; j++) {
//            var ckey = _Ctrls[j].key;  //获取控件本身的key

//            if (_key == ckey) {     //url中的key跟控件中的key比较
//                _key = _Ctrls[j].netname;
//                break;
//            }
//        }
//        setFormValue(_key, _val, FormName);
//    }
//}




////获取某表单所有Class为分页标示控件信息
////                      注：控件必须添加Class = 分页标示类 顶部
////                        参数：
////                            表单名称
////                        返回值：
////                            控件数组
//var GetFormCtrl = function (FormName) {
//    var _FormObj;
//    var _Controls = [];

//    _FormObj = document.getElementsByName(FormName);
//    var _checkbox = $(_FormObj).find("input[type='checkbox'][class='" + pclass + "']:checked");
//    var _hidden = $(_FormObj).find("input[type='hidden']." + pclass );
//    var _radio = $(_FormObj).find("input[type='radio']." + pclass + ":checked");
//    var _text = $(_FormObj).find("input[type='text']." + pclass);
//    var _select = $(_FormObj).find("select." + pclass);

//    //遍历所有 checkbox 控件
//    for (var i = 0; i < _checkbox.length; i++) {
//        _Controls[_Controls.length] = {};
//        _Controls[_Controls.length - 1] = GetAttr(_checkbox[i]);
//    }

//    //遍历所有 hidden 控件
//    for (var i = 0; i < _hidden.length; i++) {
//        _Controls[_Controls.length] = {};
//        _Controls[_Controls.length - 1] = GetAttr(_hidden[i]);
//    }

//    //遍历所有 radio 控件
//    for (var i = 0; i < _radio.length; i++) {
//        _Controls[_Controls.length] = {};
//        _Controls[_Controls.length - 1] = GetAttr(_radio[i]);
//    }

//    //遍历所有 text 控件
//    for (var i = 0; i < _text.length; i++) {
//        _Controls[_Controls.length] = {};
//        _Controls[_Controls.length - 1] = GetAttr(_text[i]);
//    }

//    //遍历所有 select 控件
//    for (var i = 0; i < _select.length; i++) {
//        _Controls[_Controls.length] = {};
//        _Controls[_Controls.length - 1] = GetAttr(_select[i]);
//    }

//    //返回所有控件数组
//    return _Controls;

//}


////GetAttr               通过控件对象获取他的属性
////                      注：控件必须添加Class = 分页标示类 顶部
////                        参数：
////                            控件对象
////                        返回值：
////                            属性数组
//var GetAttr = function (obj) {
//    var _netname = $(obj).attr("name");    //获取表单控件.net 生成的name
//    var _name = $(obj).attr("name");       //获取表单控件原始name
//    if (IsCut) {
//        var _urlkey = _name.substring(_name.lastIndexOf("_") + 1, _name.length).toLowerCase();
//    } else {
//        var _urlkey = _name.substring(_name.lastIndexOf("$") + 1, _name.length).toLowerCase();
//    }

//    var _value = $.trim($(obj).val());   //控件的值(去掉空格)

//    var controls = { netname: _netname, name: _name, key: _urlkey, val: _value };
//    return controls;
//}


////UrlParToUrl           把url参数数组转为URL
////                        参数
////                            url参数数组
////                        返回值
////                            完整的url
////var UrlParToUrl = function (Urlp) {
////    var _aTemp = new Array()
////    for (var i = 0; i < Urlp.length; i++) {
////        _aTemp[i] = Urlp[i].key + "=" + escape(Urlp[i].val);
////    }
////    if (_aTemp.length>0) {
////        return location.href.split("?")[0] + "?" + _aTemp.join("&");
////    } else {
////        return location.href.split("?")[0] ;
////    }
////    
////}


////获取url ？后面的所有参数
////返回key/val的 数组
////var GetUrlParams = function () {
////    
////    var url = location.search.toLowerCase(); //获取url中"?"符后的字串   换为小写
////    var Params = [];

////    if (url.indexOf("?") != -1) {
////        var str = url.substr(1);
////        strs = str.split("&");
////        for (var i = 0; i < strs.length; i++) {
////            if (strs[i].split("=").length > 1) {
////                Params[Params.length] = {};
////                Params[Params.length - 1] = { "key": strs[i].split("=")[0], "val": unescape(strs[i].split("=")[1]) };
////            } else {
////                Params[Params.length] = {};
////                Params[Params.length - 1] = { "key": strs[i].split("=")[0], "val": "" };
////            }
////        }
////    }

////    return Params;
////}

////获取url中单项参数的值
////参数： key 参数键
////返回该键的值
////var request = function (key) {
////    var url = location.search; //获取url中"?"符后的字串  
////    var theRequest = new Object();

////    if (url.indexOf("?") != -1) {
////        var str = url.substr(1);
////        strs = str.split("&");

////        for (var i = 0; i < strs.length; i++) {
////            if (strs[i].split("=").length > 1) {
////                theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
////            } else {
////                theRequest[strs[i].split("=")[0]] = "";
////            }
////        }
////    }

////    return theRequest[key];
////}

////去掉参数中的html和script标签和其中的内容
////参数： htmlTag：含有html和script标记的内容
////返回去掉标记后的文本
//var removeHTML_Script = function MyReplaceHTML(htmlTag) {

//    var regScript = /<script.*>.*<\/script>$/;

//    htmlTag = htmlTag.replace(/<script\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/script\s*>/, '');

//    htmlTag = htmlTag.replace(regScript, '');
//    htmlTag = htmlTag.replace(/<!--.*-->$/, '');
//    htmlTag = htmlTag.replace(/<b\s*\/>/, '');

//    htmlTag = htmlTag.replace(/<html\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/html\s*>/, '');

//    htmlTag = htmlTag.replace(/<head\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/head\s*>/, '');

//    htmlTag = htmlTag.replace(/<body\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/body\s*>/, '');

//    htmlTag = htmlTag.replace(/<a\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/a\s*>/, '');

//    htmlTag = htmlTag.replace(/<abbr\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/abbr\s*>/, '');

//    htmlTag = htmlTag.replace(/<acronym\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/acronym\s*>/, '');

//    htmlTag = htmlTag.replace(/<address\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/address\s*>/, '');

//    htmlTag = htmlTag.replace(/<applet\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/applet\s*>/, '');

//    htmlTag = htmlTag.replace(/<area\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/area\s*>/, '');

//    htmlTag = htmlTag.replace(/<base\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/base\s*>/, '');

//    htmlTag = htmlTag.replace(/<basefont\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/basefont\s*>/, '');

//    htmlTag = htmlTag.replace(/<bdo\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/bdo\s*>/, '');

//    htmlTag = htmlTag.replace(/<big\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/big\s*>/, '');

//    htmlTag = htmlTag.replace(/<small\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/small\s*>/, '');

//    htmlTag = htmlTag.replace(/<basefont\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/basefont\s*>/, '');

//    htmlTag = htmlTag.replace(/<bdo\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/bdo\s*>/, '');

//    htmlTag = htmlTag.replace(/<button\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/button\s*>/, '');

//    htmlTag = htmlTag.replace(/<br\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/br\s*>/, '');

//    htmlTag = htmlTag.replace(/<caption\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/caption\s*>/, '');

//    htmlTag = htmlTag.replace(/<center\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/center\s*>/, '');

//    htmlTag = htmlTag.replace(/<em\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/em\s*>/, '');

//    htmlTag = htmlTag.replace(/<strong\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/strong\s*>/, '');

//    htmlTag = htmlTag.replace(/<dfn\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dfn\s*>/, '');

//    htmlTag = htmlTag.replace(/<samp\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/samp\s*>/, '');

//    htmlTag = htmlTag.replace(/<kbd\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/kbd\s*>/, '');

//    htmlTag = htmlTag.replace(/<col\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/col\s*>/, '');

//    htmlTag = htmlTag.replace(/<colgroup\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/colgroup\s*>/, '');

//    htmlTag = htmlTag.replace(/<dd\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dd\s*>/, '');

//    htmlTag = htmlTag.replace(/<del\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/del\s*>/, '');

//    htmlTag = htmlTag.replace(/<dfn\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dfn\s*>/, '');

//    htmlTag = htmlTag.replace(/<dir\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dir\s*>/, '');

//    htmlTag = htmlTag.replace(/<div\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/div\s*>/, '');

//    htmlTag = htmlTag.replace(/<dl\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dl\s*>/, '');

//    htmlTag = htmlTag.replace(/<dt\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/dt\s*>/, '');

//    htmlTag = htmlTag.replace(/<em\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/em\s*>/, '');

//    htmlTag = htmlTag.replace(/<fieldset\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/fieldset\s*>/, '');

//    htmlTag = htmlTag.replace(/<font\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/font\s*>/, '');

//    htmlTag = htmlTag.replace(/<form\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/form\s*>/, '');

//    htmlTag = htmlTag.replace(/<frame\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/frame\s*>/, '');

//    htmlTag = htmlTag.replace(/<frameset\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/frameset\s*>/, '');

//    htmlTag = htmlTag.replace(/<head\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/head\s*>/, '');

//    htmlTag = htmlTag.replace(/<h2\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/h2\s*>/, '');

//    htmlTag = htmlTag.replace(/<h3\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/h3\s*>/, '');

//    htmlTag = htmlTag.replace(/<h4\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/h4\s*>/, '');

//    htmlTag = htmlTag.replace(/<h5\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/h5\s*>/, '');

//    htmlTag = htmlTag.replace(/<h6\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/h6\s*>/, '');

//    htmlTag = htmlTag.replace(/<hr\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/hr\s*>/, '');

//    htmlTag = htmlTag.replace(/<html\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/html\s*>/, '');

//    htmlTag = htmlTag.replace(/<i\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/i\s*>/, '');

//    htmlTag = htmlTag.replace(/<iframe\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/iframe\s*>/, '');

//    htmlTag = htmlTag.replace(/<img\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/img\s*>/, '');

//    htmlTag = htmlTag.replace(/<input\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/input\s*>/, '');

//    htmlTag = htmlTag.replace(/<ins\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/ins\s*>/, '');

//    htmlTag = htmlTag.replace(/<kbd\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/kbd\s*>/, '');

//    htmlTag = htmlTag.replace(/<label\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/label\s*>/, '');

//    htmlTag = htmlTag.replace(/<legend\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/legend\s*>/, '');

//    htmlTag = htmlTag.replace(/<li\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/li\s*>/, '');

//    htmlTag = htmlTag.replace(/<link\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/link\s*>/, '');

//    htmlTag = htmlTag.replace(/<map\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/map\s*>/, '');

//    htmlTag = htmlTag.replace(/<menu\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/menu\s*>/, '');

//    htmlTag = htmlTag.replace(/<meta\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/meta\s*>/, '');

//    htmlTag = htmlTag.replace(/<noframes\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/noframes\s*>/, '');

//    htmlTag = htmlTag.replace(/<noscript\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/noscript\s*>/, '');

//    htmlTag = htmlTag.replace(/<object\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/object\s*>/, '');

//    htmlTag = htmlTag.replace(/<ol\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/ol\s*>/, '');

//    htmlTag = htmlTag.replace(/<optgroup\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/optgroup\s*>/, '');

//    htmlTag = htmlTag.replace(/<option\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/option\s*>/, '');

//    htmlTag = htmlTag.replace(/<p\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/p\s*>/, '');

//    htmlTag = htmlTag.replace(/<param\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/param\s*>/, '');

//    htmlTag = htmlTag.replace(/<pre\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/pre\s*>/, '');

//    htmlTag = htmlTag.replace(/<q\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/q\s*>/, '');

//    htmlTag = htmlTag.replace(/<s\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/s\s*>/, '');

//    htmlTag = htmlTag.replace(/<samp\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/samp\s*>/, '');

//    htmlTag = htmlTag.replace(/<script\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/script\s*>/, '');

//    htmlTag = htmlTag.replace(/<select\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/select\s*>/, '');

//    htmlTag = htmlTag.replace(/<small\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/small\s*>/, '');

//    htmlTag = htmlTag.replace(/<span\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/span\s*>/, '');

//    htmlTag = htmlTag.replace(/<strike\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/strike\s*>/, '');

//    htmlTag = htmlTag.replace(/<strong\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/strong\s*>/, '');

//    htmlTag = htmlTag.replace(/<style\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/style\s*>/, '');

//    htmlTag = htmlTag.replace(/<sub\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/sub\s*>/, '');

//    htmlTag = htmlTag.replace(/<sup\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/sup\s*>/, '');

//    htmlTag = htmlTag.replace(/<table\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/table\s*>/, '');

//    htmlTag = htmlTag.replace(/<tbody\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/tbody\s*>/, '');

//    htmlTag = htmlTag.replace(/<td\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/td\s*>/, '');

//    htmlTag = htmlTag.replace(/<textarea\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/textarea\s*>/, '');

//    htmlTag = htmlTag.replace(/<tfoot\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/tfoot\s*>/, '');

//    htmlTag = htmlTag.replace(/<th\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/th\s*>/, '');

//    htmlTag = htmlTag.replace(/<thead\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/thead\s*>/, '');

//    htmlTag = htmlTag.replace(/<title\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/title\s*>/, '');

//    htmlTag = htmlTag.replace(/<tr\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/tr\s*>/, '');

//    htmlTag = htmlTag.replace(/<tt\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/tt\s*>/, '');

//    htmlTag = htmlTag.replace(/<u\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/u\s*>/, '');

//    htmlTag = htmlTag.replace(/<ul\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/ul\s*>/, '');

//    htmlTag = htmlTag.replace(/<var\s*\/?>/, '');
//    htmlTag = htmlTag.replace(/<\/var\s*>/, '');

//    return htmlTag;
//};

